'''
from common.Request import Request
base_url="http://www.dftest4.com"
req=Request(base_url)

class Login:
    def api_getReCaptchaImage(self):
        url=base_url+"/api/getReCaptchaImage.json"
        response=req.send_request(url=url,method="post").json()
        return response


    def login(self,username,password):
        url=base_url+"/api/login.json"
        id=self.api_getReCaptchaImage()['data']['id']
        data={"username":username,"password":password,"id":id}
        response=req.send_request(url=url,method="post",json=data).json()
        return response


if __name__=="__main__":
    login=Login()
    response=login.api_getReCaptchaImage()
    backgroundImage=response['data']['captcha']['backgroundImage']

    print(backgroundImage)
'''






